package pl.register.android.course;

import pl.register.android.year.Year;

import java.io.Serializable;
import java.util.List;

/**
 * @author Mateusz Strzelecki
 * @since 2013-04-11
 */
public class Course implements Serializable {

    private Long id;

    private int startYearCourse;

    private int endYearCourse;

    private List<Year> years;

    public Course(int startYearCourse, int endYearCourse) {
        this.id = null;
        this.startYearCourse = startYearCourse;
        this.endYearCourse = endYearCourse;
    }

    public Course(Long id, int startYearCourse, int endYearCourse) {
        this.id = id;
        this.startYearCourse = startYearCourse;
        this.endYearCourse = endYearCourse;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getStartYear() {
        return startYearCourse;
    }

    public void setStartYear(int startYearCourse) {
        this.startYearCourse = startYearCourse;
    }

    public int getEndYear() {
        return endYearCourse;
    }

    public void setEndYear(int endYearCourse) {
        this.endYearCourse = endYearCourse;
    }

    public List<Year> getYears() {
        return years;
    }

    public void setYears(List<Year> years) {
        this.years = years;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", startYearCourse=" + startYearCourse +
                ", endYearCourse=" + endYearCourse +
                '}';
    }
}